from typing import Optional, List

from pydantic import BaseModel


class GroupModel(BaseModel):
    group_id: Optional[str]
    group_name: Optional[str]
    group_code: Optional[int]
    group_level: Optional[int]
    group_thumbnail: Optional[str]
    parent_code: Optional[int]
    is_used: Optional[bool]
    hav_children: Optional[bool]


class GroupTreeModel(BaseModel):
    group_tree: Optional[List]
